package com.punai.gk.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.punai.common.annotation.Excel;
import com.punai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 归口字段定义对象 gk_item
 *
 * @author zxw_
 * @date 2023-01-06
 */
public class GkItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private String id;

    /**
     *
     */
    private Long companyId;

    /**
     *
     */
    private String templateId;

    /**
     *
     */
    private String nameDesc;

    /**
     *
     */
    private String codeDesc;

    /**
     * 输入/选择 IN / SE
     */
    @Excel(name = "输入/选择 IN / SE")
    private String typeDesc;

    /**
     * 默认值
     */
    @Excel(name = "默认值")
    private String defValue;

    /**
     * 选择时的可选值 , 分割
     */
    @Excel(name = "选择时的可选值 , 分割")
    private String selectValue;

    /**
     * 部门id
     */
    @Excel(name = "部门id")
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @TableField(fill = FieldFill.INSERT)
    private Long userId;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer orderNum;

    private String hide;


    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setNameDesc(String nameDesc) {
        this.nameDesc = nameDesc;
    }

    public String getNameDesc() {
        return nameDesc;
    }

    public void setCodeDesc(String codeDesc) {
        this.codeDesc = codeDesc;
    }

    public String getCodeDesc() {
        return codeDesc;
    }

    public void setTypeDesc(String typeDesc) {
        this.typeDesc = typeDesc;
    }

    public String getTypeDesc() {
        return typeDesc;
    }

    public void setDefValue(String defValue) {
        this.defValue = defValue;
    }

    public String getDefValue() {
        return defValue;
    }

    public void setSelectValue(String selectValue) {
        this.selectValue = selectValue;
    }

    public String getSelectValue() {
        return selectValue;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public String getHide() {
        return hide;
    }

    public void setHide(String hide) {
        this.hide = hide;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("companyId", getCompanyId())
                .append("templateId", getTemplateId())
                .append("nameDesc", getNameDesc())
                .append("codeDesc", getCodeDesc())
                .append("typeDesc", getTypeDesc())
                .append("defValue", getDefValue())
                .append("selectValue", getSelectValue())
                .append("deptId", getDeptId())
                .append("userId", getUserId())
                .append("orderNum", getOrderNum())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
